<%-- <%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>天祥瑞饲料</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<meta name="viewport" id="viewport" content="width=device-width,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="format-detection" content="telephone=no"/>
<link href="./css/pj.css" rel="stylesheet" type="text/css">
<link href="./css/reset.css" rel="stylesheet" type="text/css">
<script src="./js/jquery-1.8.3.min.js"></script>
<script src="./js/jquery.raty.js" type="text/javascript"></script>
<script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
<script type="text/javascript" src="js/weixin_util.js"></script>
<script type="text/javascript">

$(function() {

});

</script>
</head>
<body>
<div class="near-box">
    <div class="header">
		<a href="./my-indent-pj.html" class="left"></a>
		<p class="headerText">评价</p>
	</div>
    <div class="jd-qrdd-bigbox">
       <div class="tb-pj-a1">
       	  <span class="tbpj-a1-i1"><img src="./del/fruits-img7.png"></span>
       	  <span class="tbpj-a1-t1">新鲜青柠500g/盒 约5粒，保证新鲜！</span>
       	  <div class="tbpj-a1-t1" style="color:#ff2d33">￥123</div>
       </div>
       <div class="tb-pj-a2">
       	  <textarea class="tbpj-a2-input"></textarea>
       </div>
	       	   <input type="file" name="" class="serve-type-btn1">
	       	   <input type="button" onclick="pj()" value="添加图片">
       <a href="" class="tb-pj-c1">发表评价</a>
    </div>
</div>
<script type="text/javascript">
	$(function(){
		 debugger;
		var obje = {
				url : location.href.split('#')[0]
			};
			$.ajax({
				type : "post",
				url : "../WeChat/accessToken/testasdsadasdsadas.do",
				data : obje,
				dataType : "json",
				success : function(data) {
					wx.config({
						debug : false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来，若要查看传入的参数，可以在pc端打开，参数信息会通过log打出，仅在pc端时才会打印。  
						appId : "wx7d7032171ddabf95", // 必填，公众号的唯一标识  
						timestamp : data.timestamp, // 必填，生成签名的时间戳  
						nonceStr : data.nonceStr, // 必填，生成签名的随机串  
						signature : data.signature,// 必填，签名，见附录1  
						jsApiList : [ 'checkJsApi', 'onMenuShareTimeline',
								'onMenuShareAppMessage', 'onMenuShareQQ',
								'onMenuShareWeibo', 'onMenuShareQZone',
								'hideMenuItems', 'showMenuItems',
								'hideAllNonBaseMenuItem',
								'showAllNonBaseMenuItem', 'translateVoice',
								'startRecord', 'stopRecord',
								'onVoiceRecordEnd', 'playVoice',
								'onVoicePlayEnd', 'pauseVoice', 'stopVoice',
								'uploadVoice', 'downloadVoice', 'chooseImage',
								'previewImage', 'uploadImage', 'downloadImage',
								'getNetworkType', 'openLocation',
								'getLocation', 'hideOptionMenu',
								'showOptionMenu', 'closeWindow', 'scanQRCode',
								'chooseWXPay', 'openProductSpecificView',
								'addCard', 'chooseCard', 'openCard']
					});
					  wx.ready(function(){
			            });
				},
				error : function() {
				}
			});
		
	})
</script>
<img id="imgTarget" src="">
<script type="text/javascript">
	function pj(){
		wx.chooseImage({
			count: 1, // 默认9
			sizeType: ['original', 'compressed'], // 可以指定是原图还是压缩图，默认二者都有
			sourceType: ['album', 'camera'], // 可以指定来源是相册还是相机，默认二者都有
			 success: function (res) {
                 serverIds=[];
                 medil_id="";
                 var imgUrl= "";
                 localIds = res.localIds;
                 alert('已选择 ' + res.localIds.length + ' 张图片');
                 if (res.localIds.length == 0) {
                     alert('请先使用微信的 chooseImage 接口选择图片');
                      return;
                 }
                 uploadImages(localIds);
                 for(var i=0;i<localIds.length;i++){
                      imgUrl+=localIds[i]+",";
                      $(".img_container").append('<div style="width:50%;padding: 0 5px;"><img width="100%" height="80px" style="margin-right: 10px;" src="'+localIds[i]+'"/></div>');}
                  },
               fail:function(res){
                    alert("失败的原因"+res);
                 },
           error:function(){
               alert("上传失败");
           }
			});
	}
</script>
<img id="imgTarget" src="">
 <div class="img_container"></div>
<script src="./js/jquery-1.8.3.min.js"></script>
<script src="./js/jquery.raty.js" type="text/javascript"></script>
<script type="text/javascript">
rat('star1','result1',5);
rat('star2','result2',1);
function rat(star,result,m){

	star= '#' + star;
	result= '#' + result;
	$(result).hide();//将结果DIV隐藏

	$(star).raty({
		hints: ['10','20', '30', '40', '50'],
		path: "images/img",
		starOff: 'star-off-big.png',
		starOn: 'star-on-big.png',
		size: 24,
		start: 40,
		showHalf: true,
		target: result,
		targetKeep : true,//targetKeep 属性设置为true，用户的选择值才会被保持在目标DIV中，否则只是鼠标悬停时有值，而鼠标离开后这个值就会消失
		click: function (score, evt) {
			//第一种方式：直接取值
		}
	});
	/*第二种方式可以设置一个隐蔽的HTML元素来保存用户的选择值，然后可以在脚本里面通过jQuery选中这个元素来处理该值。 弹出结果
	var text = $(result).text();
	$('img').click(function () {
		if ($(result).text() != text) {
			alert('你的评分是'+$(result).text()/m+'分');
			alert(result);
			return;
		}
	});*/
}
$(".tbpj-a1-i2").click(function () {
    	$(this).toggleClass("check");
    });
</script>
</body>

</html> --%>